package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;

import java.util.List;

public interface PermissionService {

    PageResult pageQuery (QueryPageBean queryPageBean);

    void add (Permission permission, Integer[] menuIds);

    void edit (Permission pPermission, Integer[] menuIds);

    Permission findById (Integer id);

    void deleteById (Integer id);

    List<Permission> findAll ();

    List<Menu> findMenuIdsByPermissionId (Integer id);

    List<Integer> findpermissionidsbyroleid(Integer roleId);

}
